home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950528-19950726 / 000305_news@columbia.edu_Tue Jul 11 01:26:08 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA08380
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Tue, 11 Jul 1995 09:57:07 -0400
  3. Received: by apakabar.cc.columbia.edu id AA21390
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Tue, 11 Jul 1995 09:57:07 -0400
  5. Path: news.columbia.edu!panix!news.mathworks.com!gatech!swrinde!cs.utexas.edu!news.cs.utah.edu!cc.usu.edu!jrd
  6. From: jrd@cc.usu.edu (Joe Doupnik)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: 3.13 Expression Eval Fails In 3.14
  9. Message-Id: <1995Jul11.072608.55791@cc.usu.edu>
  10. Date: 11 Jul 95 07:26:08 MDT
  11. References: <3tt06c$3do@ds2.acs.ucalgary.ca>
  12. Organization: Utah State University
  13. Lines: 44
  14. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  15.  
  16. In article <3tt06c$3do@ds2.acs.ucalgary.ca>, dddau@acs3.acs.ucalgary.ca (Doug Dau) writes:
  17. > The following MSK 3.13 macro which iterates through a list of
  18. > phone numbers, dialing each one in turn until it either gets a
  19. > connection or fails to connect to any of the numbers, is failing
  20. > when I try to run it under the May 21/95 patch level 8 version of
  21. > MSK 3.14.
  22. >   COM MACRO TO MANAGE DIALING A LIST OF PHONE NUMBERS.
  23. >   def TRY set count \v(argc),if count,-
  24. >   :NXT,clear both,hangup,assign _dialnum \%\v(count),dial,if succ end 0,if 
  25.     count go :NXT,-
  26.                  ^^^^---------- Nope. The name of the label is NXT, not :NXT.
  27.  
  28. >   def \%z f
  29. > where the macro would be invoked as
  30. >   try phoneno1 phoneno2 phoneno3 ... phoneno9
  31. > The problem seems to trace down to how the expression
  32. >   
  33. >   assign _dialnum \%\v(count)
  34. > is evaluated. Formerly it would evaluate to the phone number
  35. > associated with the argument being pointed to by "count" (don't
  36. > believe the syntax was quite kosher according to the manual but
  37. > it worked).  Under 3.14 the best I can do is get the expression
  38. > to evaluate to the symbolic arguments (\%9, \%8, etc) if I code
  39. > the fragment as
  40. >   assign _dialnum \\\{37}\v(count)
  41. > so it looks like 3.13 rescans and reduces the expression until
  42. > there is nothing left to substitute while 3.14 just scans the
  43. > expression once and quits.
  44.  
  45.     There is different parser logic in MSK 3.14. As you have noted,
  46. it does depth first recursion but it no longer backs up to reparse the
  47. whole command line every time.
  48.     I suggest you deal with explicit strings if possible, rather
  49. than \%<digit> substitution variables. Amongst other aspects \%<digit>
  50. become command line arguments when invoking other macros. Then use
  51. string concatenation to form the target phone number string.
  52.     Joe D.